package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="COM_TABLEFILTER"
 *     
*/
public class ComTablefilter implements Serializable {

    /** identifier field */
    private String ctfGuid;

    /** nullable persistent field */
    private String moduleCode;

    /** nullable persistent field */
    private String moduleName;

    /** nullable persistent field */
    private String tableName;

    /** nullable persistent field */
    private String tableChname;

    /** nullable persistent field */
    private String state;

    /** nullable persistent field */
    private String reserve1;

    /** nullable persistent field */
    private String reserve2;

    /** nullable persistent field */
    private String reserve3;

    /** full constructor */
    public ComTablefilter(String ctfGuid, String moduleCode, String moduleName, String tableName, String tableChname, String state, String reserve1, String reserve2, String reserve3) {
        this.ctfGuid = ctfGuid;
        this.moduleCode = moduleCode;
        this.moduleName = moduleName;
        this.tableName = tableName;
        this.tableChname = tableChname;
        this.state = state;
        this.reserve1 = reserve1;
        this.reserve2 = reserve2;
        this.reserve3 = reserve3;
    }

    /** default constructor */
    public ComTablefilter() {
    }

    /** minimal constructor */
    public ComTablefilter(String ctfGuid) {
        this.ctfGuid = ctfGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CTF_GUID"
     *         
     */
    public String getCtfGuid() {
        return this.ctfGuid;
    }

    public void setCtfGuid(String ctfGuid) {
        this.ctfGuid = ctfGuid;
    }

    /** 
     *            @hibernate.property
     *             column="MODULE_CODE"
     *             length="10"
     *         
     */
    public String getModuleCode() {
        return this.moduleCode;
    }

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    /** 
     *            @hibernate.property
     *             column="MODULE_NAME"
     *             length="50"
     *         
     */
    public String getModuleName() {
        return this.moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    /** 
     *            @hibernate.property
     *             column="TABLE_NAME"
     *             length="50"
     *         
     */
    public String getTableName() {
        return this.tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    /** 
     *            @hibernate.property
     *             column="TABLE_CHNAME"
     *             length="50"
     *         
     */
    public String getTableChname() {
        return this.tableChname;
    }

    public void setTableChname(String tableChname) {
        this.tableChname = tableChname;
    }

    /** 
     *            @hibernate.property
     *             column="STATE"
     *             length="1"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVE1"
     *             length="100"
     *         
     */
    public String getReserve1() {
        return this.reserve1;
    }

    public void setReserve1(String reserve1) {
        this.reserve1 = reserve1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVE2"
     *             length="150"
     *         
     */
    public String getReserve2() {
        return this.reserve2;
    }

    public void setReserve2(String reserve2) {
        this.reserve2 = reserve2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVE3"
     *             length="300"
     *         
     */
    public String getReserve3() {
        return this.reserve3;
    }

    public void setReserve3(String reserve3) {
        this.reserve3 = reserve3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("ctfGuid", getCtfGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ComTablefilter) ) return false;
        ComTablefilter castOther = (ComTablefilter) other;
        return new EqualsBuilder()
            .append(this.getCtfGuid(), castOther.getCtfGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCtfGuid())
            .toHashCode();
    }

}
